package com.jinsi.mapper.yrf;

import com.jinsi.pojo.SyUser;
import com.jinsi.pojo.Role;
import com.jinsi.pojo.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    public SyUser getUserByNameAndPwd(String userName, String userPwd);
    public SyUser getUserByPhone(String userPhone);

    List<UserRole> listByUserId(int userId);

    Role selectById(int roleId);

    Integer addUser(SyUser syUser);

    Integer addUserRole(Integer userId,Integer roleId);
}
